package com.cwm.test.prototype.simple;

import lombok.Data;

import java.util.List;

@Data
public class ConcretPrototypeA implements Prototype{

    private String name;
    private int age;
    private List hobbies;

    @Override
    public Prototype clone() {
        ConcretPrototypeA concretPrototypeA = new ConcretPrototypeA();
        concretPrototypeA.setAge(this.age);
        concretPrototypeA.setHobbies(this.hobbies);
        concretPrototypeA.setName(this.name);
        return concretPrototypeA;
    }
}
